#ifndef V_ADDRESS_H
#define V_ADDRESS_H

#include <Winsock2.h>

class VAddress {
private:
// 	by network byte order
	sockaddr_in  m_addr;
public:
	VAddress();
	VAddress(const sockaddr_in* addr);
	VAddress(const char* hostname, unsigned short port);
	char* getIp(char* buf, int len) const;
	unsigned short getPort() const;
	void getAddr(sockaddr_in* sockaddr_in) const;
};

#endif